﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Hero
    {
        private string nickname;
        private string heroname;
        private string heroinfo;
        private int atk;
        private int defense;
        private int speed;

        public Hero() { }

        public Hero(string nickname,string hername,string heroinfo,int atk,int defense,int speed)
        {
            this.nickname = nickname;
            this.heroname = heroname;
            this.heroinfo = heroinfo;
            this.atk = atk;
            this.defense = defense;
            this.speed = speed;
        }

        public void Hello()
        {
            Console.WriteLine("昵称：{0},英雄姓名：{1},英雄介绍：{2},攻击力：{3},防御力：{4},速度：{5}",this.nickname,this.heroname,this.heroinfo,this.atk,this.defense,this.speed);
        }

        public string Nickname
        {
            get { return nickname; }
            set { this.nickname = value; }
        }
        public string Heroname
        {
            get { return heroname; }
            set { this.heroname = value; }
        }
        public string Heroinfo
        {
            get { return heroinfo; }
            set { this.heroinfo = value; }
        }
        public int ATK
        {
            get { return atk; }
            set { this.atk = value; }
        }
        public int Defense
        {
            get { return defense; }
            set { this.defense = value; }
        }
        public int Speed
        {
            get { return speed; }
            set { this.speed = value; }
        }
    }
}
